<template>
    <div class="loading-spinner" :style="{backgroundColor:bgc||'transparent'}">
        <div class="spinner"></div>
    </div>
</template>

<script>
export default {
    props:['bgc'],
    name: 'LoadingSpinner'
}
</script>

<style scoped>
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10.6667vw;
    margin-top: 5.3333vw;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #999;
    border-radius: 50%;
    width: 9.6vw;
    height: 9.6vw;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
</style>